home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / xul-ext-noscript.postinst < prev    next >
Encoding:
Text File  |  2012-11-12  |  490 b   |  27 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. mv_conffile() {
  6.     local OLDCONFFILE="$1"
  7.     local NEWCONFFILE="$2"
  8.     local CONFDIR="$3"
  9.  
  10.     [ -e "$OLDCONFFILE" ] || return 0
  11.  
  12.     mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new
  13.     mv -f "$OLDCONFFILE" "$NEWCONFFILE"
  14.     [ -n "$CONFDIR" ] && rmdir "$CONFDIR"
  15. }
  16.  
  17. case "$1" in
  18. configure)
  19.     if dpkg --compare-versions "$2" le 1.9.9.47-1; then
  20.         mv_conffile /etc/xul-ext-noscript/noscript.js /etc/xul-ext/noscript.js /etc/xul-ext-noscript/
  21.     fi
  22. esac
  23.  
  24.  
  25.  
  26. exit 0
  27.